// 根据角色动态生成路由
import { MockMethod } from "vite-plugin-mock";

export default [
  {
    url: "/api/poc/get_pocs_list",
    method: "post",
    response: ({ body }) => {
      return {
        code: 2000,
        data: {
          current_page: 1,
          total_pages: 66,
          items: {
            critical: [
              {
                author: "zan8in wuhua",
                id: "CNVD-2017-20077",
                name: "Ueditor\u7f16\u8f91\u5668.net\u7248\u672c\u5b58\u5728\u6587\u4ef6\u4e0a\u4f20\u6f0f\u6d1e",
                number: 4,
                severity: "critical"
              }
            ],
            high: [
              {
                author: "whynot(https://github.com/notwhy)",
                id: "CNNVD-200705-315",
                name: "Caucho Resin Information Disclosure",
                number: 1,
                severity: "high"
              }
            ]
          }
        },
        message: "success"
      };
    }
  },
  {
    url: "/api/poc/create_pocs_group",
    method: "post",
    response: ({ body }) => {
      return {
        code: 2000,
        data: [
          {
            author: "zan8in wuhua",
            id: "CNVD-2017-20077",
            name: "Ueditor\u7f16\u8f91\u5668.net\u7248\u672c\u5b58\u5728\u6587\u4ef6\u4e0a\u4f20\u6f0f\u6d1e",
            number: 4,
            severity: "critical"
          },
          {
            author: "whynot(https://github.com/notwhy)",
            id: "CNNVD-200705-315",
            name: "Caucho Resin Information Disclosure",
            number: 1,
            severity: "high"
          }
        ],
        message: "success"
      };
    }
  },
  {
    url: "/api/poc/add_scan_tactics",
    method: "post",
    response: ({ body }) => {
      return {
        code: 2000,
        data: [
          {
            author: "zan8in wuhua",
            id: "CNVD-2017-20077",
            name: "Ueditor\u7f16\u8f91\u5668.net\u7248\u672c\u5b58\u5728\u6587\u4ef6\u4e0a\u4f20\u6f0f\u6d1e",
            number: 4,
            severity: "critical"
          }
        ],
        message: "success"
      };
    }
  },
  {
    url: "/api/poc/get_scan_tactics",
    method: "post",
    response: ({ body }) => {
      return {
        code: 2000,
        data: [
          {
            create_time: "Mon, 15 Jan 2024 22:40:06 GMT",
            create_user: "admin",
            id: 20,
            link_asset_group: "b55ae06a-1f20-4d75-86bd-a1af5600",
            poc_always_id:
              "b55ae06a-1f20-4d75-86bd-a1af5600,b55ae06a-1f20-4d75-86bd-a1af5601",
            poc_config_type: "web",
            poc_custom_id:
              "b55ae06a-1f20-4d75-86bd-a1af5600,b55ae06a-1f20-4d75-86bd-a1af5601",
            poc_policy_description: "扫描啊",
            poc_policy_name: "扫描1",
            poc_web_level: "critical,high,low",
            poc_web_type_sub_type: "poc_level",
            scan_policy_id: "08cc0e5b-e992-42fa-a964-0b34f1267490"
          }
        ],
        message: "success"
      };
    }
  }
] as MockMethod[];
